﻿<UserControl x:Class="MediaOwl.Cryptos.Views.XorChiffreView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
             xmlns:ctrl="clr-namespace:MediaOwl.Common.ControlTemplates;assembly=MediaOwl.Common"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="400">

    <ctrl:WorkitemControl BusyContext="{Binding CurrentBusyViewModel}"
                          DialogContext="{Binding ActiveDialog}">
        <toolkit:DockPanel Margin="5">
        	<toolkit:DockPanel toolkit:DockPanel.Dock="Top" Margin="0,0,0,15">
        		<TextBlock x:Name="DisplayName"
    				TextWrapping="Wrap"
    				toolkit:DockPanel.Dock="Left"
    				Style="{StaticResource Heading2}" />
        		<Button x:Name="ShowDescription" Content="Info" Width="75" HorizontalAlignment="Right" VerticalAlignment="Center"/>
        	</toolkit:DockPanel>
        	<ScrollViewer toolkit:DockPanel.Dock="Top" ScrollViewer.VerticalScrollBarVisibility="Auto">
        		<toolkit:DockPanel Margin="5" LastChildFill="False">
        			<toolkit:DockPanel toolkit:DockPanel.Dock="Top"
    					LastChildFill="False" Margin="0,0,0,15">
        				<StackPanel Margin="0,0,10,0">
        					<CheckBox IsChecked="{Binding NumberShift, Mode=TwoWay}"
        						Content="Use Number-Shift"
        						VerticalAlignment="Center" />
        					<CheckBox IsChecked="{Binding OneTimePad, Mode=TwoWay}"
        						Content="Use OneTimePad"
        						VerticalAlignment="Center" />
        				</StackPanel>
        				<toolkit:NumericUpDown x:Name="Rotation"
        					FontSize="16"
        					Visibility="{Binding RotationVisibility}"
        					Maximum="255"
        					Width="70"
        					Height="Auto"
        					Margin="0,0,20,0"
        					HorizontalAlignment="Left"
        					MaxHeight="34" />
        				<Button x:Name="Execute"
        					Content="Execute"
        					VerticalAlignment="Center"
        					Margin="0"
        					toolkit:DockPanel.Dock="Right" />
        			</toolkit:DockPanel>
        			<toolkit:DockPanel toolkit:DockPanel.Dock="Top"
    					LastChildFill="False" Margin="0,0,0,15">
        				<TextBlock Text="Enter Text here:"
        					VerticalAlignment="Top"
        					toolkit:DockPanel.Dock="Top" Style="{StaticResource Heading4}" />
        				<TextBox x:Name="TextInput"
        					Background="#7E000000"
        					toolkit:DockPanel.Dock="Top"
        					AcceptsReturn="True"
        					VerticalScrollBarVisibility="Auto"
        					FontSize="14.667"
        					MaxLength="255" Foreground="{StaticResource NormalFontBrush}" MinHeight="100" MaxHeight="200" TextWrapping="Wrap" />
        			</toolkit:DockPanel>
        			<toolkit:DockPanel toolkit:DockPanel.Dock="Top"
    					LastChildFill="False">
        				<toolkit:DockPanel VerticalAlignment="Top"
        					toolkit:DockPanel.Dock="Top">
        					<TextBlock Text="Result:"
        						VerticalAlignment="Bottom" Style="{StaticResource Heading4}" />
        					<Button x:Name="MoveInput"
        						Content="Copy to Input"
        						d:LayoutOverrides="Height"
        						toolkit:DockPanel.Dock="Right"
        						HorizontalAlignment="Right"
        						VerticalAlignment="Bottom"
        						Margin="8,0,0,3" />
        				</toolkit:DockPanel>
        				<TextBox x:Name="Result"
        					Background="#7E000000"
        					toolkit:DockPanel.Dock="Top"
        					IsReadOnly="True"
        					AcceptsReturn="True"
        					VerticalScrollBarVisibility="Auto"
        					FontSize="14.667" Foreground="{StaticResource NormalFontBrush}" MinHeight="100" MaxHeight="200" TextWrapping="Wrap" />
        			</toolkit:DockPanel>
        		</toolkit:DockPanel>
        	</ScrollViewer>
        </toolkit:DockPanel>
    </ctrl:WorkitemControl>
</UserControl>
